package com.ruoyi.wechat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wechat.mapper.DynamicImgMapper;
import com.ruoyi.wechat.domain.DynamicImg;
import com.ruoyi.wechat.service.IDynamicImgService;

/**
 * dynamicImgService业务层处理
 * 
 * @author yeluochen
 * @date 2024-12-24
 */
@Service
public class DynamicImgServiceImpl implements IDynamicImgService 
{
    @Autowired
    private DynamicImgMapper dynamicImgMapper;

    /**
     * 查询dynamicImg
     * 
     * @param id dynamicImg主键
     * @return dynamicImg
     */
    @Override
    public DynamicImg selectDynamicImgById(Long id)
    {
        return dynamicImgMapper.selectDynamicImgById(id);
    }

    /**
     * 查询dynamicImg列表
     * 
     * @param dynamicImg dynamicImg
     * @return dynamicImg
     */
    @Override
    public List<DynamicImg> selectDynamicImgList(DynamicImg dynamicImg)
    {
        return dynamicImgMapper.selectDynamicImgList(dynamicImg);
    }

    /**
     * 新增dynamicImg
     * 
     * @param dynamicImg dynamicImg
     * @return 结果
     */
    @Override
    public int insertDynamicImg(DynamicImg dynamicImg)
    {
        return dynamicImgMapper.insertDynamicImg(dynamicImg);
    }

    /**
     * 修改dynamicImg
     * 
     * @param dynamicImg dynamicImg
     * @return 结果
     */
    @Override
    public int updateDynamicImg(DynamicImg dynamicImg)
    {
        return dynamicImgMapper.updateDynamicImg(dynamicImg);
    }

    /**
     * 批量删除dynamicImg
     * 
     * @param ids 需要删除的dynamicImg主键
     * @return 结果
     */
    @Override
    public int deleteDynamicImgByIds(Long[] ids)
    {
        return dynamicImgMapper.deleteDynamicImgByIds(ids);
    }

    /**
     * 删除dynamicImg信息
     * 
     * @param id dynamicImg主键
     * @return 结果
     */
    @Override
    public int deleteDynamicImgById(Long id)
    {
        return dynamicImgMapper.deleteDynamicImgById(id);
    }
}
